package com.ruoyi.patrol.service.impl;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.patrol.domain.PtLineGuard;
import com.ruoyi.patrol.domain.PtLineRecord;
import com.ruoyi.patrol.mapper.PtLineRecordGuardMapper;
import com.ruoyi.patrol.mapper.PtLineRecordMapper;
import com.ruoyi.patrol.service.IPtLineRecordGuardService;
import com.ruoyi.patrol.service.IPtLineRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 安全巡查工作记录Service业务层处理
 *
 * @author mlb
 * @date 2022-11-13
 */
@Service
public class PtLineRecordGuardServiceImpl implements IPtLineRecordGuardService {
    @Autowired
    private PtLineRecordGuardMapper ptLineRecordGuardMapper;

    /**
     * 查询安全巡查工作记录列表
     *
     * @param ptLineGuard 安全巡查工作记录
     * @return 安全巡查工作记录
     */
    @Override
    @DataScope(deptAlias = "l")
    public List<PtLineGuard> selectPtLineGuardList(PtLineGuard ptLineGuard) {
        return ptLineRecordGuardMapper.selectPtLineGuardList(ptLineGuard);
    }

    /**
     * 导出安保人员巡查记录
     *
     * @param ptLineGuard
     * @return
     */
    @Override
    @DataScope(deptAlias = "l")
    public List<PtLineGuard> selectPtLineGuardListExcel(PtLineGuard ptLineGuard) {
        return ptLineRecordGuardMapper.selectPtLineGuardListExcel(ptLineGuard);
    }

}
